Skip to content

Conversation

github-actions[bot]
Copy link

This PR contains a snapshot of 2023.1 from upstream stable/2023.1.

notartom and others added 4 commits August 30, 2024 02:03
While we do cache the hosts's capabilities in self._caps in the
libvirt Host object, if we happen to fist call get_capabilities() with
some of our dedicated CPUs offline, libvirt erroneously reports them
as being on socket 0 regardless of their real socket. We would then
cache that topology, thus breaking pretty much all of our NUMA
accounting.

To fix this, this patch makes sure to call get_capabilities()
immediately upon host init, and to power up all our dedicated CPUs
before doing so. That way, we cache their real socket ID.

For testing, because we don't really want to implement a libvirt bug
in our Python libvirt fixture, we make due with a simple unit tests
that asserts that init_host() has powered on the correct CPUs.

Closes-bug: 2077228
Change-Id: I9a2a7614313297f11a55d99fb94916d3583a9504
(cherry picked from commit 79d1f06)
(cherry picked from commit 294444b)
(cherry picked from commit 6448e38)
Since the commit the remove AMI snapshot format special casing
has merged, we're now running the libvirt snapshot tests as expected.
However, for those tests qemu-img binary needs to be installed.
Because these tests have been silently and incorrectly skipped for so long,
they didn't receive the same maintenance as other tests as the failures went unnoticed.

Change-Id: Ia90eedbe35f4ab2b200bdc90e0e35e5a86cc2110
Closes-bug: #2075178
Signed-off-by: Julien Le Jeune <julien.le-jeune@ovhcloud.com>
(cherry picked from commit 0809f75)
(cherry picked from commit cd4e581)
(cherry picked from commit f58e8df)
We currently get the following error message if attempting to fit a
guest with hugepages on a node that doesn't have enough:

  Host does not support requested memory pagesize, or not enough free
  pages of the requested size. Requested: -2 kB

Correct this, removing the kB suffix and adding a note on the meaning of
the negative values, like we have for the success path.

Change-Id: I247dc0ec03cd9e5a7b41f5c5534bdfb1af550029
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Closes-Bug: #2075959
(cherry picked from commit 4678bcb)
(cherry picked from commit f619311)
(cherry picked from commit 6147a05)
@github-actions github-actions bot requested a review from a team as a code owner September 16, 2024 06:25
@github-actions github-actions bot added automated Automated action performed by GitHub Actions synchronisation labels Sep 16, 2024
@priteau priteau closed this Sep 16, 2024
@priteau priteau reopened this Sep 16, 2024
@priteau priteau enabled auto-merge September 16, 2024 07:05
priteau
priteau previously approved these changes Sep 16, 2024
@github-actions github-actions bot dismissed priteau’s stale review September 16, 2024 07:28

The merge-base changed after approval.

@priteau priteau disabled auto-merge September 16, 2024 07:29
@priteau priteau merged commit c86ef32 into stackhpc/2023.1 Sep 16, 2024
3 checks passed
@priteau priteau deleted the upstream/2023.1-2024-09-16 branch September 16, 2024 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automated Automated action performed by GitHub Actions synchronisation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants